import java.util.Scanner;

public class demo9 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int x=scanner.nextInt();
        int []arr=new int[x];
        for (int i=0;i<x;i++){
            arr[i]=scanner.nextInt();
        }
        int sum=0;
        int temp=-1;
        for (int i = 0; i <x ; i++) {
            if(arr[i]>temp){
                sum++;
                temp=arr[i];
            }
        }
        System.out.println(sum);
    }
}
